package com.budwk.app.jim;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * @author ZY.Wang
 * @since 2023/6/16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class WebSocketMsgDTO {

    /**
     * websocket的类型，看看下面这个类
     * {@link com.budwk.app.sqfw.constants.SqfwWebSocketMsgConstants}
     */
    private String type;

    /**
     * 消息
     */
    private String msg;

    /**
     * 关联数据
     * {@link com.budwk.app.sqfw.constants.SqfwWebSocketMsgConstants}
     */
    private Map<String, Object> relatedParams;

    public WebSocketMsgDTO(String type, String msg) {
        this.msg = msg;
        this.type = type;
    }
}
